-- GENERATED SPELL FOR [Spellmaw] --


function spell0_10662(pUnit, Event) --@Devour Magic,n/a--
pUnit:FullCastSpellOnTarget(17012,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10662', 682, 1)
end

function spell1_10662(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(16099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10662', 12000, 1)
end

function Sorts_10662(pUnit, Event)
local choix_sorts_10662 = math.random(0, 1)
if choix_sorts_10662 == 0 then
pUnit:RegisterEvent('spell0_10662', 1, 1)
end
if choix_sorts_10662 == 1 then
pUnit:RegisterEvent('spell1_10662', 1, 1)
end
end

function mob10662_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10662', math.random(1500, 3000), 1)
end

function mob10662_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10662_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10662_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10662, 1, 'mob10662_Action')
RegisterUnitEvent(10662, 2, 'mob10662_Leave')
RegisterUnitEvent(10662, 3, 'mob10662_Kill')
RegisterUnitEvent(10662, 4, 'mob10662_Die')
